# source files.
SRCDIR = ../src
OBJDIR = ./obj

FILES =  	testMain.cpp 	

#OBJ = $(SRC:.cpp=.o)
OBJ_FILES = $(FILES:.cpp=.o)
OBJ =  $(patsubst %,$(OBJDIR)/%,$(OBJ_FILES))

SRC =  $(patsubst %,$(SRCDIR)/%,$(FILES))

OUT = ./test_v3d_interface

# include directories
INCLUDES = -I. -I../../../core/v3d_interface/inc 

# C++ compiler flags (-g -O2 -Wall)
CCFLAGS = -g

# compiler
CCC = g++

# library paths
LIBS = -L../../../core/v3d_interface/lib -lv3d_interface

# compile flags
LDFLAGS = -g

.SUFFIXES: .cpp

default: dep $(OUT)

$(OBJDIR)/%.o : $(SRCDIR)/%.cpp
	$(CCC) $(INCLUDES) $(CCFLAGS) -c $< -o $@

$(OUT): $(OBJ)
	$(CCC) -o $@ $^ $(CCFLAGS) $(LIBS)

depend: dep

dep:
	#makedepend -- $(CFLAGS) -- $(INCLUDES) $(SRC)

clean:
	rm -f $(OBJ) $(OUT)

